<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Faktura VAT</title>{literal}
	<style type="text/css">
	body {
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
}
h1 {
font-size:21px;
}

fieldset {
padding:10px;

}
legend h2 {
	margin:0;
	padding:0;
}{/literal}
	</style>
</head>
<body>


<table style="width: 900px; margin-left: auto; margin-right: auto;">
	<tr>
		<td width="50%">
		<fieldset name="Group1">
				<legend><strong>Sprzedawca</strong></legend>
				<p>{$invoiceAddress}<br/>
</p>
			</fieldset>
		</td>
		<td align="right"><h1>Faktura VAT nr: {$invoiceNumber}</h1>
		<p>Data wystawienia: {$paymentObj->getDatePayment()|date_format:"%d-%m-%Y"}</p>
		<p>Data sprzedaży: {$paymentObj->getDatePayment()|date_format:"%d-%m-%Y"}</p>
		<p>Termin zapłaty: {$paymentObj->getDatePayment()|date_format:"%d-%m-%Y"}</p>
		<p>Sposób zapłaty: przelew</p>
		<p>Zapłacona</p>
		</td>
	</tr>
	<tr>
		<td colspan="2">
		<h2 align="center"><br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Oryginał</h2>
		<fieldset name="Group2">

			<legend><h2><strong>Nabywca</strong></h2></legend>

				<table style="width: 100%; font-size:14px;">
					<tr>
						<td><p>{$shopObj->getName()}<br />
								{$shopObj->getFirstName()} {$shopObj->getLastName()}<br />
								{$shopObj->getStreet()} {$shopObj->getHouseNumber()}{if $shopObj->getLocalNumber()!=''}/{$shopObj->getLocalNumber()}{/if}<br />
								{$shopObj->getZipCode()} {$shopObj->getCity()} {$shopObj->getCountry()}<br />
								{if $shopObj->getNip()!=''}NIP: {$shopObj->getNip()}{/if}
								</p></td>
					<td valign="bottom"><p></p>
					</td>
					</tr>
				</table>


			</fieldset>

		</td>
	</tr>
	<tr>
		<td colspan="2">
		<table class="details" style="width: 900px; border:1px solid #000" border="1" cellpadding="5" cellspacing="0">
			<tr>
				<td>L.p</td>
				<td align="center">Nazwa towaru/usługi</td>
				
				<td align="center">Ilość</td>
				<td align="center">J.m</td>
				<td align="center">Cena jedn. netto</td>
				<td align="center">Wartość netto</td>
				<td align="center">VAT</td>
			</tr>
			<tr>
				<td align="right">1</td>
				<td align="left">Zasilenie konta</td>
				
				<td align="right">1</td>
				<td align="right">1 {$paymentObj->getCurrency}</td>
				<td align="right">{$priceNet}</td>
				<td align="right">{$priceNet}</td>
				<td align="right">23%</td>
			</tr>
		</table>
		</td>
	</tr>
</table>

	<div style="width: 900px; margin-left: auto; margin-right: auto;">
<table align="right" style=" border:1px solid #000; margin-top:10px;" cellpadding="5" cellspacing="0" border="1">
	<tr>
	    <td rowspan="2" align="center">PLN<br/>Razem</td>
		<td align="center">Wartość netto</td>
		<td align="center">Wartość vat</td>
		<td align="center">Wartość brutto</td>
	</tr>
	<tr>
		<td>{$priceNet}</td>
		<td>{$vatAmount}</td>
		<td>{$paymentObj->getBalance()}</td>
	</tr>

</table>
	</div>

<p>&nbsp;</p>
<p></p>
<p>&nbsp;</p>
<table align="center" cellpadding="20">
<tr>
		{*<td align="center">	</td>*}
		<td width="300">&nbsp;</td>

		<td align="center"><strong>{$invoicePerson}</strong></td>
	</tr>

	<tr>
		{*<td align="center" style="border-top:1px solid #000;"><p>podpis osoby upoważnionej <br />
		do odbioru faktury VAT</p>
		</font></td>*}
		<td width="200">&nbsp;</td>

		<td align="center" style="border-top:1px solid #000;">osoba upoważniona<br />
		do wystawienia faktury VAT</td>
	</tr>
</table>
<div style="width: 900px; margin-left: auto; margin-right: auto;">
Słownie: {$wordPrice} pln {$wordPriceDec}
</div>
</body>
</html>
